<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>投票结果</title>
    <link rel="stylesheet" type="text/css" th:href="@{/mystatic/bootstrap-3.4.1-dist/css/bootstrap.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/mystatic/bootstrap-3.4.1-dist/css/bootstrap-theme.css}"/>
</head>
<script type="text/javascript">
    function mychange(obj){
        //alert(obj);
        //alert(obj.value);
        window.location.href="list?index="+obj.value+"&size=5";
    }
    function mychangesize(obj){
        window.location.href="list?size="+obj.value;
    }
</script>
</head>
<body>
<p th:replace="sessionuser :: ftest"></p><!--替换掉宿主元素-->
<h2 align="center" >查看投票结果页面 , <a th:href="@{/list}" >返回</a></h2>
<h3 style="color: green;" >标题:[(${onevo.vs_title})]</h3>
<h4 style="color: #cccccc" >共有[(${onevo.subcount})]个选项,已有[(${onevo.vicount})]个网友参加了投票</h4>
<hr/>
<table border="0" align="center" width="800px;" >
    <tr th:each="entry:${rs}">
        <td width="20px" valign="top" th:text="${entry.vo_id}" ></td>
        <td>
            <div class="progress">
                <div class="progress-bar progress-bar-success" role="progressbar" th:attr="aria-valuenow=${entry.bll}" aria-valuenow="50" th:style="'width:' + ${entry.bll} + '%' "  aria-valuemin="0" aria-valuemax="100"  >
                     [(${entry.vo_option})] [(${entry.bll})]%
                </div>
            </div>
        </td>
        <td width="100px"  valign="top" th:text="${entry.opcc}+'票'" ></td>
    </tr>
</table>
</div>
</body>
</html>